<?php

namespace Database\Seeders;

use App\Models\CategoryGroup;
use Illuminate\Database\Seeder;

class CategoryGroupSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $categoryGroups = [
            ['name' => '科目分类', 'flag' => 'subject', 'user_id' => 1],
            ['name' => '考试分类', 'flag' => 'examination', 'user_id' => 1],
            ['name' => '试卷分类', 'flag' => 'paper', 'user_id' => 1],
            ['name' => '题库分类', 'flag' => 'text-bank', 'user_id' => 1],
            ['name' => '菜单', 'flag' => 'menu', 'user_id' => 1],
        ];

        foreach ($categoryGroups as $categoryGroup) {
            CategoryGroup::create($categoryGroup);
        }
    }
}
